<%@ page language="java" import="java.util.*,com.hs.core.cache.*,com.hs.wdss.model.*" pageEncoding="utf-8"%>
<%
	WdssDisinfo obj = (WdssDisinfo)request.getAttribute("obj");
	 WdssPreinfo preobj = (WdssPreinfo)request.getAttribute("preobj");
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="../../include.jsp"%>  
<script src="<%=basePath %>app/javascripts/transform.js"></script>
<script src='<%=basePath%>dwr/interface/dataProhelper.js'></script>  
<script language="javascript" type="text/javascript">

</script>
</head>
<body>
    	<table border="0" cellspacing="0" cellpadding="0" style="width:100%" class="list">
          <tr> 
            <th width="20%">中药名称</th>
            <th width="10%">剂量</th>
            <th width="10%">剂量单位</th>
            <th width="20%">用法</th>
            <th width="20%">功效</th>
            <th width="20%">备注</th> 
          </tr>
          <tbody id=herblist>
           <%if(preobj != null && !preobj.getHerbset().isEmpty()){
                Set herbset = preobj.getHerbset();
                Iterator iter = herbset.iterator();
          		while(iter.hasNext()){
          			WdssHerbinfo herbinfo1 = (WdssHerbinfo)iter.next();
           %>
	           <tr id=herb_<%=herbinfo1.getId() %>>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=StringUtilTool.NULL2Blank(herbinfo1.getHerbname())%></td>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=StringUtilTool.NULL2Blank(herbinfo1.getJiliang())%></td>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=DictCacheUtil.getInst().selectStr4Display(StringUtilTool.NULL2Blank(herbinfo1.getUnittype()),"11")%></td>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=StringUtilTool.NULL2Blank(herbinfo1.getMethod())%></td>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=StringUtilTool.NULL2Blank(herbinfo1.getFuncinfo())%></td>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=StringUtilTool.NULL2Blank(herbinfo1.getMemo())%></td>
	           </tr>
           <%}}else if(obj != null && !obj.getHerbset().isEmpty()){
                Set herbset = obj.getHerbset();
                Iterator iter = herbset.iterator();
          		while(iter.hasNext()){
          			WdssHerbinfo herbinfo = (WdssHerbinfo)iter.next(); 
          	%>
          	<tr id=herb_<%=herbinfo.getId() %>>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=StringUtilTool.NULL2Blank(herbinfo.getHerbname())%></td>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=StringUtilTool.NULL2Blank(herbinfo.getJiliang())%></td>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=DictCacheUtil.getInst().selectStr4Display(StringUtilTool.NULL2Blank(herbinfo.getUnittype()),"11")%></td>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=StringUtilTool.NULL2Blank(herbinfo.getMethod())%></td>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=StringUtilTool.NULL2Blank(herbinfo.getFuncinfo())%></td>
 	           <td style="word-break:break-all;over-flow:hidden;"><%=StringUtilTool.NULL2Blank(herbinfo.getMemo())%></td>
	           </tr>
           <%}}%>
           </tbody>
        </table>
       
</body>
</html>


